{% extends "base.html" %}

{% block content %}
<div class="container mt-4">
    <h2>创建新仓库</h2>
    <form method="POST" action="{{ url_for('create_repo') }}">
        <div class="mb-3">
            <label for="name" class="form-label">仓库名称</label>
            <input type="text" class="form-control" id="name" name="name" required>
            <div class="form-text">只能包含字母、数字、下划线和连字符</div>
        </div>
        <div class="mb-3">
            <label for="description" class="form-label">描述(可选)</label>
            <textarea class="form-control" id="description" name="description" rows="2"></textarea>
        </div>
        <div class="mb-3 form-check">
            <input type="checkbox" class="form-check-input" id="is_public" name="is_public" checked>
            <label class="form-check-label" for="is_public">公开仓库</label>
        </div>
        <button type="submit" class="btn btn-primary">创建仓库</button>
    </form>
</div>
{% endblock %}
